﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="stuCourse.aspx.cs" Inherits="stuManage.stuCourse" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生课程管理</title>
    <link href="CSS/bootstrap.css" rel="stylesheet" />
    <link href="CSS/style.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        <div class="overlay"></div>
        <!-- Sidebar -->
        <nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
            <ul class="nav sidebar-nav">
                <li class="sidebar-brand">
                    <a href="#">学生成绩管理系统
                    </a>
                </li>
                <li>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="stuInf.aspx"><i class="fa fa-fw fa-home"></i>学生信息管理</asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="teaInf.aspx"><i class="fa fa-fw fa-folder"></i>教师信息管理</asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="teaCourse.aspx"><i class="fa fa-fw fa-file-o"></i>教师课程管理</asp:HyperLink>
                </li>
            </ul>
        </nav>

        <form id="form1" runat="server">

            <div id="page-content-wrapper">
                <button type="button" class="hamburger is-closed animated fadeInLeft" data-toggle="offcanvas">
                    <span class="hamb-top"></span>
                    <span class="hamb-middle"></span>
                    <span class="hamb-bottom"></span>
                </button>
                <div class="info">
                    <img src="image/admin.jpg" alt="管理员" class="img-circle" width="60" height="60" />
                    <p>姓名：admin</p>
                    <asp:HyperLink ID="HyperLink4" class="btn btn-default btn-default active" role="button" runat="server" NavigateUrl="login.aspx">注销</asp:HyperLink>

                </div>
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 col-xs-12  col-sm-offset-0">
                            <h1 class="page-header">学生课程管理</h1>
                        </div>
                    </div>
                    <br />
                    <br />
                    <br />


                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="color: #ffffff">学号：</label>
                        <div class="col-sm-4">
                            <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ForeColor="Red" ErrorMessage="学号不能为空" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
                        </div>
                        <div class="col-sm-2">
                            <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" class="btn btn-default" />
                        </div>
                    </div>
                    <br />
                    <br />
                    <br />

                    <div id="stuCourse_inf" runat="server" style="margin: 0 auto; width: 1000px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" class="table  table-condensed" AllowPaging="True" AllowSorting="True" ForeColor="White" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
                            <Columns>
                                <asp:BoundField DataField="id" />
                                <asp:BoundField DataField="stu_id" HeaderText="学号" />
                                <asp:BoundField DataField="stu_name" HeaderText="姓名" />
                                <asp:BoundField DataField="department" HeaderText="所属学院" />
                                <asp:BoundField DataField="className" HeaderText="班级" />
                                <asp:BoundField DataField="cou_id" HeaderText="课程编号" />
                                <asp:BoundField DataField="cou_name" HeaderText="课程名称" />
                                <asp:CommandField ShowDeleteButton="True" />
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div id="notFound" runat="server"></div>


                    <div id="addCourse" runat="server" style="display: none" class="form-group">
                        <label class="col-sm-2 control-label" style="color: #ffffff">开课学院：</label>
                        <div class="col-sm-2">
                            <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true">
                                <asp:ListItem Value="">请选择学院</asp:ListItem>
                                <asp:ListItem Value="马克思主义学院">马克思主义学院</asp:ListItem>
                                <asp:ListItem Value="理学院">理学院</asp:ListItem>
                                <asp:ListItem Value="计算机学院">计算机学院</asp:ListItem>
                                <asp:ListItem Value="信息学院">信息学院</asp:ListItem>
                                <asp:ListItem Value="经济学院">经济学院</asp:ListItem>
                                <asp:ListItem Value="外国语学院">外国语学院</asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <label class="col-sm-2 control-label" style="color: #ffffff">课程名称：</label>

                        <div class="col-sm-2">
                            <asp:DropDownList ID="DropDownList2" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="col-sm-2">
                            <asp:Button ID="Button2" runat="server" Text="添加" OnClick="Button2_Click" class="btn btn-default" />
                        </div>
                    </div>
                </div>
            </div>

        </form>
    </div>
    <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script src="https://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var trigger = $('.hamburger'),
                overlay = $('.overlay'),
                isClosed = false;

            trigger.click(function () {
                hamburger_cross();
            });

            function hamburger_cross() {

                if (isClosed == true) {
                    overlay.hide();
                    trigger.removeClass('is-open');
                    trigger.addClass('is-closed');
                    isClosed = false;
                } else {
                    overlay.show();
                    trigger.removeClass('is-closed');
                    trigger.addClass('is-open');
                    isClosed = true;
                }
            }

            $('[data-toggle="offcanvas"]').click(function () {
                $('#wrapper').toggleClass('toggled');
            });
        });
    </script>

</body>
</html>
